package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.RegistrationChargeTypeDao;
import org.lq.his.pojo.RegistrationChargeType;
import org.lq.his.service.RegistrationChargeTypeService;
import org.springframework.stereotype.Service;
@Service("registrationChargeTypeService")
public class RegistrationChargeTypeServiceImpl implements RegistrationChargeTypeService {
	@Resource
	private RegistrationChargeTypeDao registrationChargeTypeDao;
	
	public void setRegistrationChargeTypeDao(RegistrationChargeTypeDao registrationChargeTypeDao) {
		this.registrationChargeTypeDao = registrationChargeTypeDao;
	}

	@Override
	public List<RegistrationChargeType> getAll() {
		
		return registrationChargeTypeDao.getAll();
	}

	@Override
	public RegistrationChargeType getById(Integer id) {
		return registrationChargeTypeDao.getById(id);
	}

	

	@Override
	public List<RegistrationChargeType> getListByCondition(int start, int limit, RegistrationChargeType condition,
			String column, String orderBy) {
		return registrationChargeTypeDao.getListByCondition(start, limit, condition, column, orderBy);
	}

	@Override
	public int getCountByCondition(RegistrationChargeType condition) {
		return registrationChargeTypeDao.getCountByCondition(condition);
	}

	@Override
	public void add(RegistrationChargeType registrationChargeType) {
		registrationChargeTypeDao.add(registrationChargeType);
		
	}

	@Override
	public void update(RegistrationChargeType registrationChargeType) {
		registrationChargeTypeDao.update(registrationChargeType);
		
	}

	@Override
	public void deleteRegistrationChargeType(Integer[] ids) {
		registrationChargeTypeDao.deleteByIds(ids);
		
	}
	
}
